package demo08;

/**
 * @author: WangPeng
 * @createTime: 2022/11/01 22:10
 * @description:
 * @version: v1.0
 */
public class Boy extends Thread{

     private BankCard bankCard;

     public Boy (BankCard bankCard){
         this.bankCard=bankCard;
     }

    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            bankCard.cun(1000);
        }
    }
}
